'use strict';

angular.module('com.dcos.app').controller('TemplateNameController', function($scope,$state,$uibModalInstance,save,savedata,templateName) {
  
  var vm = this;

  vm.templateName=templateName;

  vm.ok = function () {
    savedata.t_name=vm.templateName;
    save(savedata);
    $uibModalInstance.dismiss('cancel');
  }

  vm.cancel = function () {
    $uibModalInstance.dismiss('cancel');
  };

});

